components:
- name: Store
  params:
    host: localhost
    index: index-name
    port: 80
  type: ElasticsearchDocumentStore
- name: Retriever
  params:
    document_store: Store
    top_k: 10
  type: BM25Retriever
- name: Reranker
  params:
    batch_size: 32
    model_name_or_path: cross-encoder/ms-marco-MiniLM-L-12-v2
    top_k: 10
    use_gpu: true
  type: SentenceTransformersRanker
- name: PromptModel
  params:
    model_kwargs:
        model_kwargs:
            device_map: {"": 0}
            torch_dtype: torch.bfloat16
            do_sample: false
        generation_kwargs:
            max_length: 10
    model_name_or_path: "Intel/fid_flan_t5_base_nq"
    invocation_layer_class: fastrag.prompters.invocation_layers.fid.FiDHFLocalInvocationLayer
    use_gpu: true
  type: PromptModel
- name: AnswerParser
  params: {}
  type: AnswerParser
- name: lfqa
  params:
    output_parser: AnswerParser
    prompt: "{query}"
  type: PromptTemplate
- name: Reader
  params:
    default_prompt_template: lfqa
    model_name_or_path: PromptModel
  type: PromptNode
- name: KGCreator
  params:
    model_name: studio-ousia/luke-large-finetuned-tacred
    use_gpu: true
    batch_size: 15
    max_length: 256
    spacy_package: en_core_web_sm
  type: LukeKGCreator
pipelines:
- name: my_pipeline
  nodes:
  - inputs:
    - Query
    name: Retriever
  - inputs:
    - Retriever
    name: Reranker
  - inputs:
    - Reranker
    name: Reader
  - inputs:
    - Reader
    name: KGCreator
version: 1.12.2
